package fi.helsinki.cs.scheduler3000;

import java.io.*;

/**
 * @author Rakettiryhmä
 */
public class ExportReport {

    public void export(Report report) {

       String data = report.toString();

       try {
           PrintWriter file = new PrintWriter("schedule.csv");
           file.print(data);
           file.close();
           System.out.println("Schedule was exported to schedule.csv");

        } catch(Exception e) {

            System.out.print(e);
        }
    }
}
